x = int(input("输入一个范围在(1,1000)之内的整数:"))
outPutStr = f'{x} = '
factor = 2

if x == 0:
	outPutStr += ' 0'
elif x == 1:
	outPutStr += ' 1'
else:
	while True:
		if x % factor == 0:
			outPutStr += f' {factor} *'
			x /= factor
		else:
			factor += 1

		if x == 1:
			break

if outPutStr[-1] == '*':
	outPutStr = outPutStr[:-1]

print(outPutStr)
